package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品类目表
 * </p>
 *
 * @author wpdcn
 * @since 2020-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_category")
@ApiModel
public class ShopCategoryEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Column(comment = "主键id")
    @ApiModelProperty("主键id")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Long categoryId;

    /**
     * 上级类目id
     */
    @Column(comment = "上级类目id")
    @ApiModelProperty("上级类目id")
    private Long parentId;

    /**
     * 类目名称
     */
    @Column(comment = "类目名称")
    @ApiModelProperty("类目名称")
    private String name;

    /**
     * 类目级别
     */
    @Column(comment = "类目级别")
    @ApiModelProperty("类目级别")
    private Integer level;

    /**
     * 类目图标
     */
    @Column(comment = "类目图标")
    private String icon;

    /**
     * 类目图片
     */
    @Column(comment = "类目图片")
    private String pic;

    /**
     * 排序码
     */
    @Column(comment = "排序码")
    private Integer orderNum;

    /**
     * 状态：1启用；0停用
     */
    @Column(comment = "状态：1启用；0停用")
    private Boolean status;

    @Column(comment = "二级类目所属账户id")
    @ApiModelProperty("二级类目所属账户id")
    private Long accountId;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @Column(comment = "创建人")
    private Long createBy;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @Column(comment = "修改人")
    private Long updateBy;


}
